var Mock = require('mockjs')
var baseObj = {
  code: 200,
  message: 'success',
  rtnMsg: 'success',
  rtnCode: 200,
  pageNo: 1,
  pageSize: 10,
  totalCount: 40,
  success: true
}

function mockObj(obj) {
  return Mock.mock(Object.assign({}, baseObj, obj || {}))
}

export default mockObj
